<?php
	/*
	* Nusaview Component for Joomla! 1.5.x
	* Version 1.0
	* Creation date: March 2009
	* Author: Taurisa Wijaya supervised by Nur Aini Rakhmawati
	* Author email: taurisa_id@yahoo.com
	* License GNU/GPL
	*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport( 'joomla.application.component.view' );
class NvViewAPIKey extends JView{

	function display($tpl = null){
	
		// an instance of JApplication
		global $mainframe;
		
		// load data from flight's model with cURL
		$APIcurl =& $this->get('DatasCurl');
		$pageNav 	=& $this->get('Pagination');
		//print_r($APIcurl);
				
		// Setting up Toolbar
		JHTML::_('behavior.tooltip');
		JToolBarHelper::preferences('com_nv', '400');
		JToolBarHelper::title(   JText::_( 'Data API Key Nusantara View' ), 'generic.png' );
		JToolBarHelper::deleteList();
		
		JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Objek Pariwisata' ).'::'.JText::_('Data-Data Pariwisata').'">'.JText::_( 'Objek Pariwisata' ).'</span>', 'index.php?option=com_nv&controller=objek');
			JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Master Propinsi' ).'::'.JText::_('Master Data Propinsi').'">'.JText::_( 'Master Propinsi' ).'</span>', 'index.php?option=com_nv&controller=propinsi');
			JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Master Kota' ).'::'.JText::_('Master Data Kota').'">'.JText::_( 'Master Kota' ).'</span>', 'index.php?option=com_nv&controller=kota');
			JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Input Hotel' ).'::'.JText::_('Input Data Hotel').'">'.JText::_( 'Input Hotel' ).'</span>', 'index.php?option=com_nv&controller=form');
			JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Input Restoran' ).'::'.JText::_('Input Data Restoran').'">'.JText::_( 'Input Restoran' ).'</span>', 'index.php?option=com_nv&controller=formrestoran');
			JSubMenuHelper::addEntry( '<span class="editlinktip hasTip" title="'.JText::_( 'Data Api Key' ).'::'.JText::_('Data Api Key').'">'.JText::_( 'Data Api Key' ).'</span>', 'index.php?option=com_nv&controller=apikey',true);

		// send to views as an object
		$this->assignRef('APIcurl',$APIcurl);	
		$this->assignRef('pageNav', $pageNav);
			
		
		//send to html
		parent::display($tpl);

	}// end of function
}// end of class
